<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Decode
 *
 * @property int $id
 * @property string|null $name 解析名称
 * @property string|null $param 解析参数
 * @property string|null $url 解析地址
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property int|null $isdelete 1正常0冻结
 * @method static \Illuminate\Database\Eloquent\Builder|Decode newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Decode newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Decode query()
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereIsdelete($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereParam($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Decode whereUrl($value)
 * @mixin \Eloquent
 */
class Decode extends Model
{
    //
    protected $table = 'decode';

    public function setCreatedAtAttribute($value)
    {
        $this->attributes['created_at'] = strtotime($value);
    }
    public function setUpdatedAtAttribute($value)
    {
        $this->attributes['updated_at'] = strtotime($value);
    }

}
